package com.ruoyi.common.core.domain.entity.app;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.core.domain.child.BannerCommonDetail;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("app_setting")
public class AppSettingDB {

    /** 主键ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 1-开启首页广告，0-关闭 */
    private Boolean isActiveHomeAdv;

    private String postHome;

    private String homeAdJson;

    /** 3秒广告 */
    private Integer homeAdvSecond;

    /** 主页广告图 */
    private String homeAdv;
    @TableField(exist = false)
    private List<BannerCommonDetail> homeAdvObj;


    /** 首页轮播图 */
    private String homepageBanner;

    private String homepageBannerJson;
    @TableField(exist = false)
    private List<BannerCommonDetail> homepageBannerObj;

    /** 首页消息通知 */
    private String homeNotice;

    /** 活动轮播图 */
    private String activityBanner;
    private String activityBannerJson;
    @TableField(exist = false)
    private List<BannerCommonDetail> activityBannerObj;


    /** 活动描述 */
    private String activityDesc;

    /** 热卖轮播图 */
    private String hotBanner;
    private String hotBannerJson;

    @TableField(exist = false)
    private List<BannerCommonDetail> hotBannerObj;


    /** 热卖描述 */
    private String hotDesc;

    /** 创建时间 */
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    /** 创建人ID */
    @TableField(fill = FieldFill.INSERT)
    private Long createdBy;

    /** 修改时间 */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;

    /** 修改人ID */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updatedBy;

    /** 是否启用(0:未启用, 1:启用中) */
    private Boolean isActive;

    /** 是否删除(0:未启用, 1:已删除) */
    @TableLogic
    private Boolean isDeleted;

    /** 删除时间 */
    private Date deletedAt;

    /** 租户id */
    private Long tenantId;
}